<template>
  <div class="main">
    <router-view></router-view>
  </div>
</template>

<script>
import { getUserData } from "./api/index";
export default {
  data() {
    return {
      active: 1,
    };
  },
  created() {
    getUserData().then((data) => {
      localStorage.setItem("userInfo", JSON.stringify(data));
    });
  },
};
</script>

<style lang="scss">
@import url("./assets/css/base.css");
</style>